import sys
from gen1 import generate_random_string
from alg1 import Solution

sys.stdout.reconfigure(encoding='utf-8')

if __name__ == "__main__":
    solution = Solution()
    data = generate_random_string()
    print("原始字符串：", data)
    result = solution.longestNiceSubstring(data)
    print("最长的优雅子字符串为：", result)